import { createRouter , createWebHistory} from "vue-router";

const routes = [
    {
        path: '/',
        //重定向
        redirect: '/home'
    },
    {
        path: '/home',
        name: 'home',
        component: () => import('@/views/Home.vue')
    },
    {
        path: '/prepare',
        name: 'prepare',
        component: () => import('@/views/Prepare.vue')
    },
    {
        path: '/analysis',
        name: 'analysis',
        component: () => import('@/views/Analysis.vue')
    },
    {
        path: '/personal',
        name: 'personal',
        component: () => import('@/views/Personal.vue')
    },
    {
        path: '/talks',
        name: 'talks',
        component: () => import('@/views/Talks.vue')
    },
    {
        path: '/picture',
        name: 'picture',
        component: () => import('@/views/Picture.vue')
    },
    {
        path: '/video',
        name: 'video',
        component: () => import('@/views/Video.vue')
    },
    {
        path: '/askQuestion',
        name: 'askQuestion',
        component: () => import('@/views/askQuestion.vue')
    },
    {
        path: '/question',
        name: 'question',
        component: () => import('@/views/Question.vue')
    },
    
]

const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes
})

export default router